Ordering Dead Letter Queue
Kafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order API could not process.
Purpose & Scope
This dead-letter channel captures Finance basket-cleanup outcome commands that Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs could not process. Messages arrive here when transient database or service faults exhaust retries, or immediately when a command fails deserialization or validation.
DLQ Profile
| Property | Value |
|---|---|
| Owning Service | Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs |
| Address Pattern | bookworm.{env}.ordering.dead-letter-queue |
| Upstream Source Channels | Successful Basket Cleanup Command ChannelChannelv1.0.0Successful Basket Cleanup Command ChannelKafka topic owned by the commerce-fulfillment-team carrying Finance's successful basket-cleanup command consumed by Orde...Ownercommerce-fulfillment-teamOpen docs, Failed Basket Cleanup Command ChannelChannelv1.0.0Failed Basket Cleanup Command ChannelKafka topic owned by the commerce-fulfillment-team carrying Finance's failed basket-cleanup compensation command consume...Ownercommerce-fulfillment-teamOpen docs |
| Routing Triggers | Exhausted transient retries (database/service faults) or immediate poison/deserialization errors |
| Retention / Inspection Window | Governed by Kafka broker retention policy; inspect and triage before broker expiry |
| Replay Safety | Idempotent for cleanup-complete; requires manual validation for cleanup-failed (soft-deletes order) |
Triage & Replay Guardrails
Before replaying any record from this DLQ:
- Distinguish between Acknowledge basket deletion completedCommandv1.0.0Acknowledge basket deletion completedReports Finance's successful basket-cleanup outcome to Order API without changing the Order's business status. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs (records operational outcome without changing order state) and Handle basket deletion failedCommandv1.0.0Handle basket deletion failedReports Finance's failed basket-cleanup outcome so Order API can soft-delete the affected Order. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs (soft-deletes the order record).
- Inspect the current order state in Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs before replaying a failure command to ensure soft-deletion is still the intended compensation.
- Confirm database connectivity and isolate any malformed poison records before replaying valid messages.
Follow the operational triage procedures in Incident Triage & Health Check RunbookCustom DocIncident Triage & Health Check RunbookFirst-5-minutes triage commands and symptom-first recovery playbooks for Container Apps, passwordless RBAC, order orches...Ownerplatform-engineering-teamOpen doc.
- Preserved metadata: Records retain the
orderIdKafka partition key, CloudEvents envelope, and failure context. - Missing order handling: If an order has already been removed, replaying a cleanup-failed command is a safe no-op.
Channel Details & Visualization
Channel information
bookworm.{env}.ordering.dead-letter-queue- kafka
| Parameter | Description | Options | Default |
|---|---|---|---|
| env | BookWorm deployment environment. | development, staging, production | development |